public class Woman extends Person {
    Man husband;

    public Woman() {
    }

    public Woman(Man husband) {
        this.husband = husband;
    }

    public Woman(String name, int age, String idNum, Man husband) {
        super(name, age, idNum);
        this.husband = husband;
    }

    public Man getHusband() {
        return husband;
    }

    public void setHusband(Man husband) {
        this.husband = husband;
    }

    @Override
    public String toString() {
        return "Woman{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", idNum='" + idNum + '\'' +
                ", husband=" + husband +
                '}';
    }
}
